﻿/*CREATE TRIGGER [dbo].[Leyendas_DeletionTrigger] 
    ON [Leyendas] 
    AFTER DELETE 
AS 
SET NOCOUNT ON 
UPDATE [dbo].[Leyendas_Tombstone] 
    SET [DeletionDate] = GETUTCDATE() 
    FROM deleted 
    WHERE deleted.[LeyendaGuid] = [Leyendas_Tombstone].[LeyendaGuid] 
IF @@ROWCOUNT = 0 
BEGIN 
    INSERT INTO [dbo].[Leyendas_Tombstone] 
    ([LeyendaGuid], DeletionDate)
    SELECT [LeyendaGuid], GETUTCDATE()
    FROM deleted 
END*/